package com.dahua.messagesyncsh.common.util;

import cn.hutool.core.convert.Convert;

import java.util.UUID;

public class UuidUtil {
    public static <T> Integer getUuid(T t) {
        int hashCode = Convert.toStr(UUID.randomUUID().toString().replace("-", "") + t.toString()).hashCode();
        return hashCode < 0 ? -hashCode : hashCode;
    }
}
